import request from "@/utils/request";
const cms = "/cms";

// 查询菜单列表
export function getListCms(data) {
  return request({
    url: `${cms}/query`,
    method: "post",
    data: data,
  });
}

// 新增/修改菜单
export function changeCms(data) {
  return request({
    url: `${cms}/add`,
    method: "post",
    data: data,
  });
}

// 删除菜单
export function delCms(data) {
  return request({
    url: `${cms}/del`,
    method: "post",
    data: data,
  });
}
